/**
 * Created by vincent on 2017/9/22.
 */
moduleResource.factory("ForumResource", function (CambioResource, $$CambioConfig) {
    return CambioResource($$CambioConfig.RESOURCE_URL + "/forum", {}, {
        queryPage: {
            url: $$CambioConfig.RESOURCE_URL + "/forum/queryPage" + $$CambioConfig.QUERY_URI,
            method: 'POST'
        },
        setValid: {
            url: $$CambioConfig.RESOURCE_URL + "/forum/setValid",
            method: 'POST'
        },
        setInvalid: {
            url: $$CambioConfig.RESOURCE_URL + "/forum/setInvalid",
            method: 'POST'
        },
        updateTop: {
            url: $$CambioConfig.RESOURCE_URL + "/forum/updateTop",
            method: 'PUT'
        }
    });
});